package edu.dayu.abstractFactory;

import edu.dayu.factory.Circle;
import edu.dayu.factory.Square;

public class ColorFactory extends AbstractFactory{
    @Override
    public Shape getShape(String shape) {
        return null;
    }

    @Override
    public Color getColor(String color) {
       if (color.equals("red")){
           return  new Red();
       }else if (color.equals("green")){
           return new Green();
       }else {
           return null;
       }
    }
}
